package com.seu.me.test.end;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * 结案回传xml
 *
 * @author liangfeihu
 * @since 2019/10/30 14:08
 */
@Data
@ToString
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "BatchInfo")
public class EndClaimXmlInfo {
    private String GrpApplyNo;
    private String OutGrpRgtNo;
    @XmlElement(name = "ACCEPTDATE")
    private String AcceptDate;
    @XmlElement(name = "OUTTYPE")
    private String OutType;
    @XmlElement(name = "ACCEPTCOM")
    private String AcceptCom;

    @XmlElement(name = "ClmInfoList")
    private ClmData clmData;

    @Data
    @ToString
    @NoArgsConstructor
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class ClmData {
        @XmlElements(value = {@XmlElement(name = "ClmInfo", type = ClmInfo.class)})
        List<ClmInfo> clmInfoList;
    }

}
